from .base_logger import BaseLogger

logger_dict = {'BaseLogger':BaseLogger}


def build_logger(log_cfg):
    cfg = log_cfg.copy()
    logger_cls = logger_dict[cfg.pop('type')]
    return logger_cls(**cfg)


__all__ = ['logger_dict', 'build_logger']